#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/2/25
import collections
import queue

# 双向队列
d = collections.deque()

d.appendleft("1")

d.count("1")

d.append("11")

# 扩展
d.extend(["yy", "uu", "II"])

d.extendleft(["yy", "uu", "II"])

d.index("yy")

# 单向队列

q = queue.Queue()

q.put("123")

# 按照先进先出的顺序拿
q.get()

q.qsize()
